﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpages/Main.master" AutoEventWireup="true"
    EnableEventValidation="false" CodeFile="RegisterContract.aspx.cs" Inherits="User_Employer_RegisterContract" %>


<%@ Register Src="../../Controls/ContentHolder/Holder1.ascx" TagName="Holder1" TagPrefix="uc2" %>
<%@ Register Assembly="KingOf.Net.Web.UI.WebControls.PersianCalendar" Namespace="KingOf.Net.Web.UI.WebControls"
    TagPrefix="KingOfDotNet" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">     
<%--    <script src="../../Scripts/JScript.js" type="text/javascript">
        jQuery.noConflict();
    </script>--%>
    <link href="../../Css/Stylesheet.css" rel="stylesheet" type="text/css" />
    <div class="MainObject">
        <uc2:Holder1 ID="Holder11" Title="ثبت قرارداد" runat="server">
            <ContentTemplate>
                <asp:UpdatePanel ID="Update1" runat="server" UpdateMode="Always">
                    <ContentTemplate>
                        <table class="style1">
                            <tr>
                                <td class="style2">
                                    <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
                                        <asp:View ID="View1" runat="server">
                                            <table class="style1">
                                                <tr>
                                                    <td class="style2">
                                                        <asp:Label ID="Label10" runat="server" Text="نوع قراداد"></asp:Label>
                                                    </td>
                                                    <td colspan="3">
                                                        <asp:RadioButtonList ID="RadioButtonListRole" runat="server" AutoPostBack="True"
                                                            OnSelectedIndexChanged="RadioButtonListRole_SelectedIndexChanged" RepeatDirection="Horizontal"
                                                            Width="496px">
                                                            <asp:ListItem Value="Advisor">قرارداد مشاورین</asp:ListItem>
                                                            <asp:ListItem Value="Surveyor">قرارداد نقشه برداران</asp:ListItem>
                                                        </asp:RadioButtonList>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style2">
                                                        &nbsp;
                                                    </td>
                                                    <td align="center" colspan="3">
                                                        <asp:RadioButtonList ID="RadioButtonListAdvisors" runat="server" OnSelectedIndexChanged="RadioButtonListAdvisors_SelectedIndexChanged"
                                                            RepeatDirection="Horizontal" Visible="False" Width="310px">
                                                            <asp:ListItem Value="Advisorhoghooghi" Selected="True">مشاور حقوقی</asp:ListItem>
                                                            <asp:ListItem Value="Advisorhaghighi">مشاور حقیقی</asp:ListItem>
                                                        </asp:RadioButtonList>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style2">
                                                        &nbsp;
                                                    </td>
                                                    <td align="center" colspan="3">
                                                        <asp:RadioButtonList ID="RadioButtonListSurveyor" runat="server" RepeatDirection="Horizontal"
                                                            Visible="False" Width="310px">
                                                            <asp:ListItem Value="hoghooghi">نقشه بردار حقوقی</asp:ListItem>
                                                            <asp:ListItem Value="haghighi">نقشه بردار حقیقی</asp:ListItem>
                                                        </asp:RadioButtonList>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style2">
                                                        <asp:Label ID="Label12" runat="server" Text="نام خانوادگی"></asp:Label>
                                                    </td>
                                                    <td colspan="3">
                                                        <asp:TextBox ID="TxtFamily" runat="server"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style2">
                                                        &nbsp;
                                                    </td>
                                                    <td>
                                                        &nbsp;
                                                    </td>
                                                    <td>
                                                        <asp:Button ID="Button3" runat="server" CssClass="MainObject" OnClick="Button3_Click"
                                                            Text="جستجو" Width="70px" />
                                                    </td>
                                                    <td>
                                                        &nbsp;
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style2">
                                                        &nbsp;
                                                    </td>
                                                    <td colspan="3">
                                                        <asp:GridView ID="GridViewUsers" runat="server" AutoGenerateColumns="False" BackColor="White"
                                                            BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" CssClass="MainObject"
                                                            DataKeyNames="UserId" EnableModelValidation="True" OnRowCommand="GridViewUsers_RowCommand"
                                                            AllowSorting="True" OnSorting="GridViewUsers_OnSort">
                                                            <Columns>
                                                                <asp:BoundField DataField="Name" HeaderText="نام" ItemStyle-Width="100" SortExpression="Name" />
                                                                <asp:BoundField DataField="Family" HeaderText="نام خانوادگی" ItemStyle-Width="100"
                                                                    SortExpression="Family" />
                                                                <asp:BoundField DataField="Address" HeaderText="آدرس" ItemStyle-Width="100" />
                                                                <asp:BoundField DataField="Tel" HeaderText="تلفن" ItemStyle-Width="100" />
                                                                <asp:BoundField DataField="Mobile" HeaderText="موبایل" ItemStyle-Width="100" />
                                                                <asp:BoundField DataField="UserName" HeaderText="نام کاربری" ItemStyle-Width="100"
                                                                    SortExpression="UserName" />
                                                                <asp:BoundField DataField="Role" HeaderText="عنوان شغلی" Visible="False" ItemStyle-Width="100" />
                                                                <asp:BoundField DataField="UserId" HeaderText="کد کاربری" Visible="False" ItemStyle-Width="100" />
                                                                <asp:ButtonField CommandName="Select" Text="انتخاب" ItemStyle-Width="100" />
                                                            </Columns>
                                                            <FooterStyle BackColor="White" ForeColor="#000066" />
                                                            <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                                                            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                                                            <RowStyle ForeColor="#000066" />
                                                            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                                                        </asp:GridView>
                                                    </td>
                                                </tr>
                                            </table>
                                        </asp:View>
                                        <asp:View ID="View2" runat="server">
                                            <table class="style1">
                                                <tr>
                                                    <td class="style2">
                                                        <asp:Label ID="Label13" runat="server" Text="مشاور / نقشه بردار"></asp:Label>
                                                    </td>
                                                    <td>
                                                        &nbsp;
                                                    </td>
                                                    <td colspan="2">
                                                        <asp:Label ID="LblNameFamily" runat="server" Font-Size="Medium"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style2">
                                                        <asp:Label ID="Label2" runat="server" Text="شماره قرارداد"></asp:Label>
                                                    </td>
                                                    <td>
                                                        &nbsp;
                                                    </td>
                                                    <td colspan="2">
                                                        <asp:TextBox ID="TxtContractNumber" runat="server" Width="150px"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TxtContractNumber"
                                                            ErrorMessage="*"></asp:RequiredFieldValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style2">
                                                        <asp:Label ID="Label14" runat="server" Text="سال  قرارداد"></asp:Label>
                                                    </td>
                                                    <td>
                                                        &nbsp;
                                                    </td>
                                                    <td colspan="2">
                                                        <asp:TextBox ID="TxtYear" runat="server"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TxtYear"
                                                            ErrorMessage="*"></asp:RequiredFieldValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style2">
                                                        <asp:Label ID="Label16" runat="server" Text="عامل چهارم قرارداد"></asp:Label>
                                                    </td>
                                                    <td>
                                                        <%--
                            <asp:TextBox ID="TextBox1" runat="server" Width="150px"></asp:TextBox>
                        <A onclick="javascript:displayDatePicker('ctl00_ContentPlaceHolder1_TextBox1',null,'dmy',null,'fa-IR')" href="javascript:;"><img src="../../Pics/cal.gif" /></A>
                                                        --%>
                                                        <%--     <form id="form1" runat="server">--%>
                                                        <%--   <asp:TextBox ID="TextBox1" runat="server" AutoPostBack="True" Height="16px" 
                                    ontextchanged="TextBox1_TextChanged" Width="150px"></asp:TextBox>
                                     <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                       ControlToValidate="TextBox1" ErrorMessage="*"></asp:RequiredFieldValidator>
                                          <br />
                    <cc1:MaskedEditExtender ID="MaskedEditExtender2" runat="server" TargetControlID="TextBox1"
                                                Mask="9999/99/99" MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus"
                                                OnInvalidCssClass="MaskedEditError" MaskType="Date" InputDirection="LeftToRight"
                                                ClearMaskOnLostFocus="false" AutoComplete="false" UserDateFormat="YearMonthDay" />
                                            
                                            <cc1:MaskedEditValidator ID="MaskedEditValidator2" IsValidEmpty="false" ControlExtender="MaskedEditExtender2"
                                                ControlToValidate="TextBox1" runat="server" 
                                                 MinimumValue="1380/01/01" Display="Static" 
                                                ValidationExpression="^(13[0-9]{2}|14[0-9]{2})\/(0[1-9]|1[012])\/([123]0|[012][1-9]|31)$" 
                                                ValidationGroup="0" />
                                <cc1:PopupControlExtender ID="PopupControlExtender1" runat="server" 
                                    PopupControlID="Panel1" Position="Bottom" TargetControlID="TextBox1"></cc1:PopupControlExtender>
                                <br />
                                <div>
                                    <asp:Panel ID="Panel1" runat="server" CssClass="popupControl">
                                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                            <ContentTemplate>
                                                <center>
                                                    <KingOfDotNet:PersianCalendar ID="PersianCalendar1" runat="server" 
                                                        BackColor="#CCFFFF" BorderColor="#FFCC66" BorderWidth="1px" 
                                                        CssClass="MainObject" DayNameFormat="Full" EnableYearDropDownMenu="True" 
                                                        FirstDayOfWeek="Saturday" Font-Names="Verdana" Font-Size="8pt" 
                                                        ForeColor="Black" Height="200px" NextPrevFormat="CustomText" 
                                                        OnSelectionChanged="PersianCalendar1_SelectionChanged" 
                                                        SelectedDate="2011-04-22" SelectedPersianDateFormat="Short" 
                                                        SelectionMode="DayWeekMonth" TitleFormat="MonthYear" VisibleDate="2011-04-22" 
                                                        Width="220px"><WeekendDayStyle CssClass="MainObject" ForeColor="#99CCFF" /><SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" /><DayStyle CssClass="MainObject" /><TodayDayStyle BackColor="#0099FF" ForeColor="White" /><SelectorStyle BackColor="#0099FF" CssClass="MainObject" ForeColor="Black" /><OtherMonthDayStyle CssClass="MainObject" ForeColor="#0099FF" /><NextPrevStyle CssClass="MainObject" Font-Size="9pt" ForeColor="Black" /><DayHeaderStyle BackColor="#66CCFF" CssClass="MainObject" Font-Bold="True" Height="1px" /><TitleStyle BackColor="#0066CC" CssClass="MainObject" Font-Bold="True" Font-Names="tahoma" 
                                                        Font-Size="9pt" ForeColor="Black" /></KingOfDotNet:PersianCalendar>
                                                    <asp:UpdateProgress ID="UpdateProgress1" runat="server" 
                                                        AssociatedUpdatePanelID="UpdatePanel1" DisplayAfter="1">
                                                        <progresstemplate>
                   <img src="../../Pics/loading.gif" />
                </progresstemplate>
                                                    </asp:UpdateProgress>
                                                    &nbsp;&nbsp;
                                                </center>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </asp:Panel>
                                    &nbsp; &nbsp;
                                </div>--%>
                                                    </td>
                                                    <td colspan="2">
                                                        <%--
                            <asp:TextBox ID="TextBox1" runat="server" Width="150px"></asp:TextBox>
                        <A onclick="javascript:displayDatePicker('ctl00_ContentPlaceHolder1_TextBox1',null,'dmy',null,'fa-IR')" href="javascript:;"><img src="../../Pics/cal.gif" /></A>
                                                        --%><%--     <form id="form1" runat="server">--%>
                                                        <%--   <asp:TextBox ID="TextBox1" runat="server" AutoPostBack="True" Height="16px" 
                                    ontextchanged="TextBox1_TextChanged" Width="150px"></asp:TextBox>
                                     <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                       ControlToValidate="TextBox1" ErrorMessage="*"></asp:RequiredFieldValidator>
                                          <br />
                    <cc1:MaskedEditExtender ID="MaskedEditExtender2" runat="server" TargetControlID="TextBox1"
                                                Mask="9999/99/99" MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus"
                                                OnInvalidCssClass="MaskedEditError" MaskType="Date" InputDirection="LeftToRight"
                                                ClearMaskOnLostFocus="false" AutoComplete="false" UserDateFormat="YearMonthDay" />
                                            
                                            <cc1:MaskedEditValidator ID="MaskedEditValidator2" IsValidEmpty="false" ControlExtender="MaskedEditExtender2"
                                                ControlToValidate="TextBox1" runat="server" 
                                                 MinimumValue="1380/01/01" Display="Static" 
                                                ValidationExpression="^(13[0-9]{2}|14[0-9]{2})\/(0[1-9]|1[012])\/([123]0|[012][1-9]|31)$" 
                                                ValidationGroup="0" />
                                <cc1:PopupControlExtender ID="PopupControlExtender1" runat="server" 
                                    PopupControlID="Panel1" Position="Bottom" TargetControlID="TextBox1"></cc1:PopupControlExtender>
                                <br />
                                <div>
                                    <asp:Panel ID="Panel1" runat="server" CssClass="popupControl">
                                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                            <ContentTemplate>
                                                <center>
                                                    <KingOfDotNet:PersianCalendar ID="PersianCalendar1" runat="server" 
                                                        BackColor="#CCFFFF" BorderColor="#FFCC66" BorderWidth="1px" 
                                                        CssClass="MainObject" DayNameFormat="Full" EnableYearDropDownMenu="True" 
                                                        FirstDayOfWeek="Saturday" Font-Names="Verdana" Font-Size="8pt" 
                                                        ForeColor="Black" Height="200px" NextPrevFormat="CustomText" 
                                                        OnSelectionChanged="PersianCalendar1_SelectionChanged" 
                                                        SelectedDate="2011-04-22" SelectedPersianDateFormat="Short" 
                                                        SelectionMode="DayWeekMonth" TitleFormat="MonthYear" VisibleDate="2011-04-22" 
                                                        Width="220px"><WeekendDayStyle CssClass="MainObject" ForeColor="#99CCFF" /><SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" /><DayStyle CssClass="MainObject" /><TodayDayStyle BackColor="#0099FF" ForeColor="White" /><SelectorStyle BackColor="#0099FF" CssClass="MainObject" ForeColor="Black" /><OtherMonthDayStyle CssClass="MainObject" ForeColor="#0099FF" /><NextPrevStyle CssClass="MainObject" Font-Size="9pt" ForeColor="Black" /><DayHeaderStyle BackColor="#66CCFF" CssClass="MainObject" Font-Bold="True" Height="1px" /><TitleStyle BackColor="#0066CC" CssClass="MainObject" Font-Bold="True" Font-Names="tahoma" 
                                                        Font-Size="9pt" ForeColor="Black" /></KingOfDotNet:PersianCalendar>
                                                    <asp:UpdateProgress ID="UpdateProgress1" runat="server" 
                                                        AssociatedUpdatePanelID="UpdatePanel1" DisplayAfter="1">
                                                        <progresstemplate>
                   <img src="../../Pics/loading.gif" />
                </progresstemplate>
                                                    </asp:UpdateProgress>
                                                    &nbsp;&nbsp;
                                                </center>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </asp:Panel>
                                    &nbsp; &nbsp;
                                </div>--%><%-- </form>--%>
                                                        <asp:DropDownList ID="DropDownListFourthFactor" runat="server">
                                                        </asp:DropDownList>
                                                    </td>
                                                    <td width="30">
                                                    </td>
                                                    <td>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style2">
                                                        <asp:Label ID="Label9" runat="server" Text="تاریخ قرارداد"></asp:Label>
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="TextBoxDate" runat="server"></asp:TextBox>
                                                                               <asp:Panel ID="Panel1" runat="server" CssClass="popupControl">
                                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                        <ContentTemplate>
                                            <center>
                                                <KingOfDotNet:PersianCalendar BackColor="#CCFFFF" BorderColor="#FFCC66" 
                                                BorderWidth="1px" CssClass="MainObject" DayNameFormat="Full" 
                                                EnableYearDropDownMenu="true" FirstDayOfWeek="Saturday" 
                                                Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" Height="200px" 
                                                ID="PersianCalendar1" NextPrevFormat="CustomText" 
                                                OnSelectionChanged="PersianCalendar1_SelectionChanged" runat="server" 
                                                SelectedPersianDateFormat="Short" SelectionMode="DayWeekMonth" 
                                                TitleFormat="MonthYear" Width="220px"
                                                ShowDayHeader="True">
                                                    <WeekendDayStyle CssClass="MainObject" ForeColor="#99CCFF"/>
                                                    <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
                                                    <DayStyle CssClass="MainObject" />
                                                    <TodayDayStyle BackColor="#0099FF"  ForeColor="White" />
                                                    <SelectorStyle BackColor="#0099FF" CssClass="MainObject" ForeColor="Black" />
                                                    <OtherMonthDayStyle CssClass="MainObject" ForeColor="#0099FF" />
                                                    <NextPrevStyle CssClass="MainObject" Font-Size="9pt" ForeColor="Black" />
                                                    <DayHeaderStyle BackColor="#66CCFF" CssClass="MainObject" Font-Bold="True" />
                                                    <TitleStyle BackColor="#0066CC" CssClass="MainObject" Font-Bold="True" Font-Names="tahoma"
                                                        Font-Size="9pt" ForeColor="Black" />
                                                        <TodayDayStyle BackColor="#ffccdd" BorderWidth="2" ForeColor="#000000" ></TodayDayStyle>                                                        
                                                </KingOfDotNet:PersianCalendar>
                                                <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1"
                                                    DisplayAfter="1">
                                                    <ProgressTemplate>
                                                        <img src="../../Pics/loading.gif" />
                                                    </ProgressTemplate>
                                                </asp:UpdateProgress>
                                                &nbsp;&nbsp;
                                            </center>
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                </asp:Panel>
                                                                                        <cc1:PopupControlExtender ID="PopupControlExtender1" runat="server" PopupControlID="Panel1"
                                    Position="Bottom" TargetControlID="TextBoxDate">
                                </cc1:PopupControlExtender>

                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style2">
                                                        &nbsp;
                                                    </td>
                                                    <td>
                                                        &nbsp;
                                                    </td>
                                                    <td colspan="2">
                                                        &nbsp;
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style2" colspan="2">
                                                        <asp:Label ID="Label5" runat="server" CssClass="notice" Text="تاریخ را باید به صورت (روز/ ماه /سال  )وارد کنید "></asp:Label>
                                                    </td>
                                                    <td colspan="2">
                                                        &nbsp;
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style2" colspan="2">
                                                        &nbsp;
                                                    </td>
                                                    <td colspan="2">
                                                        &nbsp;
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style2">
                                                        <asp:Label ID="Label1" runat="server" Text="شهرستان:"></asp:Label>
                                                    </td>
                                                    <td>
                                                        <asp:DropDownList ID="DropDownCity" runat="server" Width="150px">
                                                        </asp:DropDownList>
                                                        <asp:CascadingDropDown ID="CascadingDropDownCity" runat="server" Category="City"
                                                            LoadingText="لطفا کمی صبر کنید" PromptText="شهرستان را انتخاب نمایید" ServiceMethod="GetCity"
                                                            ServicePath="~/user/shares/DatabaseLocations.asmx" TargetControlID="DropDownCity">
                                                        </asp:CascadingDropDown>
                                                    </td>
                                                    <td colspan="2">
                                                        &nbsp;
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style2">
                                                        <asp:Label ID="Label15" runat="server" Text="بخش:"></asp:Label>
                                                    </td>
                                                    <td>
                                                        <asp:DropDownList ID="DropDownBakhsh" runat="server" Width="150px">
                                                        </asp:DropDownList>
                                                        <asp:CascadingDropDown ID="CascadingDropDownBakhsh" runat="server" Category="Bakhsh"
                                                            LoadingText="لطفا کمی صبر کنید" ParentControlID="DropDownCity" PromptText="بخش را انتخاب نمایید"
                                                            ServiceMethod="GetBakhsh" ServicePath="~/user/shares/DatabaseLocations.asmx"
                                                            TargetControlID="DropDownBakhsh">
                                                        </asp:CascadingDropDown>
                                                    </td>
                                                    <td colspan="2">
                                                        &nbsp;
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style2">
                                                        <asp:Label ID="Label3" runat="server" Text="دهستان:"></asp:Label>
                                                    </td>
                                                    <td>
                                                        <asp:DropDownList ID="DropDownDehestan" runat="server" Width="150px">
                                                        </asp:DropDownList>
                                                        <asp:CascadingDropDown ID="CascadingDropDownDehestan" runat="server" Category="Dehestan"
                                                            LoadingText="لطفا کمی صبر کنید" ParentControlID="DropDownBakhsh" PromptText="دهستان را انتخاب نمایید"
                                                            ServiceMethod="GetDehestan" ServicePath="~/user/shares/DatabaseLocations.asmx"
                                                            TargetControlID="DropDownDehestan">
                                                        </asp:CascadingDropDown>
                                                    </td>
                                                    <td colspan="2">
                                                        &nbsp;
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style2">
                                                        <asp:Label ID="Label4" runat="server" Text="آبادی:"></asp:Label>
                                                    </td>
                                                    <td>
                                                        <asp:DropDownList ID="DropDownVillage" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DropDownVillage_SelectedIndexChanged"
                                                            Width="150px">
                                                        </asp:DropDownList>
                                                        <asp:CascadingDropDown ID="CascadingDropDownVillage" runat="server" Category="Village"
                                                            LoadingText="لطفا کمی صبر کنید" ParentControlID="DropDownDehestan" PromptText="آبادی را انتخاب نمایید"
                                                            ServiceMethod="GetVillage" ServicePath="~/user/shares/DatabaseLocations.asmx"
                                                            TargetControlID="DropDownVillage">
                                                        </asp:CascadingDropDown>
                                                    </td>
                                                    <td colspan="2">
                                                        &nbsp;
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style2" colspan="4">
                                                        <asp:GridView ID="GridViewVillageDetail" runat="server" AutoGenerateColumns="False"
                                                            BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px"
                                                            CellPadding="3" CssClass="MainObject" EnableModelValidation="True">
                                                            <Columns>
                                                                <asp:BoundField DataField="ID" HeaderText="ID" ItemStyle-Width="100" Visible="False" />
                                                                <asp:BoundField DataField="VillageCode" HeaderText="کد آبادی" ItemStyle-Width="100" />
                                                                <asp:BoundField DataField="Name" HeaderText="نام روستا" ItemStyle-Width="150" />
                                                                <asp:BoundField DataField="Khanevar" HeaderText="تعداد خانوار" ItemStyle-Width="100" />
                                                                <asp:BoundField DataField="Population" HeaderText="جمعیت" ItemStyle-Width="100" />
                                                            </Columns>
                                                            <FooterStyle BackColor="White" ForeColor="#000066" />
                                                            <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                                                            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                                                            <RowStyle ForeColor="#000066" />
                                                            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                                                        </asp:GridView>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style2">
                                                        &nbsp;
                                                    </td>
                                                    <td class="style2">
                                                        &nbsp;
                                                    </td>
                                                    <td class="style2">
                                                        &nbsp;
                                                    </td>
                                                    <td class="style2">
                                                        &nbsp;
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style2">
                                                        &nbsp;
                                                    </td>
                                                    <td class="style2">
                                                        <asp:LinkButton ID="LinkButtonInsert" runat="server" CausesValidation="False" OnClick="LinkButtonInsert_Click">اضافه به لیست</asp:LinkButton>
                                                    </td>
                                                    <td class="style2">
                                                        &nbsp;
                                                    </td>
                                                    <td class="style2">
                                                        &nbsp;
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        &nbsp;
                                                    </td>
                                                    <td>
                                                        <asp:LinkButton ID="LinkButtonDelete" runat="server" CausesValidation="False" OnClick="LinkButtonDelete_Click">حذف از لیست</asp:LinkButton>
                                                    </td>
                                                    <td>
                                                        &nbsp;
                                                    </td>
                                                    <td>
                                                        &nbsp;
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        &nbsp;
                                                    </td>
                                                    <td>
                                                        &nbsp;
                                                    </td>
                                                    <td>
                                                        &nbsp;
                                                    </td>
                                                    <td>
                                                        &nbsp;
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="Label8" runat="server" Text="لیست روستاهای قرارداد"></asp:Label>
                                                        <br />
                                                        <br />
                                                    </td>
                                                    <td>
                                                        <asp:ListBox ID="ListVillages" runat="server" CssClass="MainObject" Height="163px"
                                                            OnSelectedIndexChanged="ListVillages_SelectedIndexChanged" Width="158px"></asp:ListBox>
                                                    </td>
                                                    <td>
                                                        &nbsp;
                                                    </td>
                                                    <td align="center">
                                                        &nbsp;
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="style2" colspan="2">
                                                        <asp:Label ID="Lblstatus" runat="server"></asp:Label>
                                                    </td>
                                                    <td colspan="2">
                                                        <asp:Button ID="Button1" runat="server" CssClass="MainObject" Height="25px" OnClick="Button1_Click1"
                                                            Text="ثبت" Width="89px" />
                                                        <asp:Button ID="Button2" runat="server" CausesValidation="False" CssClass="MainObject"
                                                            Height="25px" OnClick="Button2_Click" Text="انصراف" Width="86px" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </asp:View>
                                    </asp:MultiView>
                                </td>
                            </tr>
                        </table>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </ContentTemplate>
        </uc2:Holder1>
    </div>
</asp:Content>
